#include <iostream>

using namespace std;

int tmp[110];

int main()
{
    int n;
    cin >> n;
    for (int i = 0; i < n; ++i)
    {
        cin >> tmp[i];
    }

    for (int i = 0; i < n; ++i)
    {
        int num = 0;
        for (int j = 0; j < i; ++j)
        {
            if (tmp[i] > tmp[j])
            {
                num++;
            }
        }
        cout << tmp << " ";
    }
    return 0;
}